﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MainLayout.Master" AutoEventWireup="true" CodeBehind="UserRegister.aspx.cs" Inherits="DigitalAnts.UserRegister" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-bg">
		<div class="page">
			<div class="main-container col1-layout">
								<div class="main">
					<div class="col-main">
                        <div class="account-create">
    <div class="page-title">
        <h1>Đăng ký tài khoản mới</h1>
    </div>
            
        <div class="fieldset">
            
            <h2 class="legend">Thông tin cá nhân</h2>
            <ul class="form-list">
                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label for="firstname" class="required">Họ
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="reg" ControlToValidate="txtFirstName" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtFirstName" runat="server" ValidationExpression="^[\s\S]{1,10}$" Text="1-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
        <div class="input-box">
            <asp:TextBox ID="txtFirstName" runat="server" CssClass="input-text required-entry"/>
            
        </div>
    </div>
    <div class="field name-lastname">
        <label for="lastname" class="required">Tên
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="reg" ControlToValidate="txtLastName" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ControlToValidate="txtLastName" runat="server" ValidationExpression="^[\s\S]{1,10}$" Text="1-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
        <div class="input-box">
            <asp:TextBox ID="txtLastName" runat="server" CssClass="input-text required-entry"/>
        </div>

    </div>
</div>
                </li>

                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label for="email_address" class="required">Email
        <asp:RequiredFieldValidator ID="rfvemail" runat="server" ValidationGroup="reg" ControlToValidate="txtEmail" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
                         <asp:RegularExpressionValidator ID="revemail" runat="server" ControlToValidate="txtEmail" ValidationGroup="reg" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic" >Không đúng định dạng email</asp:RegularExpressionValidator>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtEmail" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-30 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
				
                                                    </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="input-text validate-email required-entry" ToolTip="Email Address"/>
            
        </div>
    </div>
    <div class="field name-lastname">
        <label class="required">
                          Ngày sinh 
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                         ControlToValidate="txtBirthDay" SetFocusOnError="True"  Display="Dynamic" ValidationGroup="reg">*</asp:RequiredFieldValidator>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ControlToValidate="txtBirthDay" runat="server" ValidationExpression="^[\s\S]{8,10}$" Text="8-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
                         </label> 
                    <div class="input-box">
                        <asp:TextBox ID="txtBirthDay" runat="server" CssClass="input-text required-entry"/>
                        
                    </div>

    </div>
</div>
                </li>

                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
         <label class="required">Số điện thoại
          <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtPhoneNumber" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="regEM4" runat="server"  ControlToValidate="txtPhoneNumber"  SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg">Phải là số.</asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" ControlToValidate="txtPhoneNumber" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
         </label>

                    <div class="input-box">
                        <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="input-text required-entry"/>
                    </div>
        
    </div>
    <div class="field name-lastname">
        
        <label class="required">Số điện thoại nhà riêng
         <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtHomePhone" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                                                    ControlToValidate="txtHomePhone" ErrorMessage="Phải là số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" ControlToValidate="txtHomePhone" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtHomePhone" runat="server" CssClass="input-text required-entry"/>
                    </div>
    </div>
</div>
                </li>   

                
                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label class="required">Số chứng minh
         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txtIndentityCard" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                                    ControlToValidate="txtIndentityCard" ErrorMessage="Phải là số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" ControlToValidate="txtIndentityCard" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtIndentityCard" runat="server" CssClass="input-text required-entry"/>
                    </div>
    </div>
    <div class="field name-lastname">
         <label class="required">Địa chỉ
         <asp:RequiredFieldValidator ID="Required7" runat="server" ValidationGroup="reg" ControlToValidate="txtAdress" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator9" ControlToValidate="txtAdress" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-50 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
         </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtAdress" runat="server" CssClass="input-text required-entry"/>
                    </div>

    </div>
</div>
                </li>

                <li class="fields">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate> 
                    <div class="customer-name">

    <div class="field name-firstname">
          <label class="required">Quốc gia</label>
                    <div class="input-box">
                        <asp:DropDownList ID="ddtCountry" runat="server" 
                            onselectedindexchanged="ddtCountry_SelectedIndexChanged" 
                            AutoPostBack="True">
                        </asp:DropDownList>
                    </div>

    </div>
    <div class="field name-lastname">
         <label class="required">Thành phố</label>
                    <div class="input-box">
                        <asp:DropDownList ID="ddlCity" runat="server">
                        </asp:DropDownList>
                    </div>

    </div>
    </div>
                        </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddtCountry" EventName="SelectedIndexChanged" />
                    </Triggers>
                    </asp:UpdatePanel>  
                </li>
                   
            </ul>

        </div>
            <div class="fieldset">
            <h2 class="legend">Thông tin tài khoản</h2>
            <ul class="form-list">
                <li class="fields">
                    <div class="field">
                        <label for="username" class="required">Tên đăng nhập  
                        <asp:RequiredFieldValidator ID="rfvur" runat="server" ValidationGroup="reg" 
                         ControlToValidate="txtUserName" SetFocusOnError="True" Display="Dynamic" >*</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revur" runat="server" ControlToValidate="txtUserName" ValidationExpression="[a-zA-Z0-9]{6,20}" Display="Dynamic" ValidationGroup="reg">6-20 ký tự</asp:RegularExpressionValidator>

				  </label>

                        <div class="input-box">
                            
                            <asp:TextBox ID="txtUserName" runat="server" CssClass="input-text required-entry validate-password" />
                        </div>
                    </div>
                    <div class="field">
                        <label for="password" class="required">Mật mã 
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="reg" 
                                                     ControlToValidate="txtPassword" SetFocusOnError="True" Display="Dynamic" >*</asp:RequiredFieldValidator>
				                              <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ControlToValidate="txtPassword" runat="server" ValidationExpression="^[\s\S]{6,20}$" Text="6-20 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
                                              
                       
				  
                        </label>

                        <div class="input-box">
                             <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="input-text required-entry validate-cpassword"/>
                        </div>
                    </div>
                    <div class="field">
                        <label for="confirmation" class="required">Xác nhận mật mã
                         <asp:CompareValidator
                            ID="CompareValidator1" runat="server" ErrorMessage="Mật khẩu không trùng khớp" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword"></asp:CompareValidator>
                        </label>
                        <div class="input-box">
                           <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" CssClass="input-text required-entry validate-cpassword"/>

                        </div>
                    </div>
                </li>
                            </ul>
            
        </div>
        <div class="buttons-set">
            <p class="required">* Không được để trống</p>
            <p class="back-link"><a href="http://livedemo00.template-help.com/magento_36860/customer/account/login/" class="back-link"><small>&laquo; </small>Back</a></p>

            <asp:Button ID="btnSubmit" Text="Đăng ký" runat="server" OnClick="btnSubmit_Click" CssClass="button" ValidationGroup="reg"/>

        </div>
          
</div>
					</div>
				</div>
			</div>
					</div>
	</div>

</asp:Content>
